package com.thy.controller;


import com.hospital.common.base.Result;
import com.hospital.common.dto.audit.module.DeleteContentDto;
import com.thy.service.TPostContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 帖子内容表 前端控制器
 * </p>
 *
 * @author author
 * @since 2025-09-26
 */
@RestController
@RequestMapping("/postContent")
public class TPostContentController {
    @Autowired
    private TPostContentService tPostContentService;

    /**
     * 删除评论回复
     * @param deleteContentDto
     * @return
     */
    @PostMapping("/deleteContent")
    public Result<String> deleteContent(@RequestBody DeleteContentDto deleteContentDto){
        tPostContentService.deleteContent(deleteContentDto);
        return Result.success(1,"删除成功!");
    }

}
